import request from "@/utils/request";

// 考试管理模块Api
// ----------------------------------------------
// 试卷信息子模块数据请求，试卷信息子模块数据请求，试卷信息子模块数据请求


// 试卷信息数据列表
export const GetPaperList = params => {
  return request({
    url: '/exam/paper',
    params
  })
}
// 获取单个试卷信息
export const GetOnePaperList = id => {
  return request({
    url: `/exam/paper/${id}`,
  })
}

// 试卷信息信息增加新增
export const PostPaperApi = params => {
  return request({
    url: '/exam/paper',
    method: 'POST',
    params
  })
}


// 试卷归属学科下拉菜单获取信息
export const queryPaperApi = () => { //搜索条件中归属学科下拉数据显示
  return request({
    url: `/subject/subject`,
  })
}


// 试卷信息信息状态修改
export const StatePaperApi = id => {
  return request({
    url: `subject/tag/${id}/state`,
  })
}


// 试卷删除
export const delPaperListApi = id => {
  return request({
    url: `/exam/paper/${id}`,
    method:'DELETE'
  })
}

// 预览试卷信息列表
export const PreviewPaperListApi = id => {
  return request({
    url: `/exam/paper/${id}`,
  })
}
